package bean.beans1;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;

/**
 * @auther hewenhui
 * @see <a href="hetp://www.codingmaster.com> java </a>
 */
// 目标类
@Component
public class OrderService {
    // 目标方法
    public void generate(){
        System.out.println("订单已生成！");
        if (1 == 2) {
            throw new RuntimeException("模拟异常发生");
        }
    }
}
